package com.chinafree.permission.converter;

import com.chinafree.permission.model.bo.RoleBO;
import com.chinafree.permission.model.param.RoleParam;
import com.chinafree.permission.model.po.RolePO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @description: 关于角色的转换
 * @author: Sarah
 * @modified By: Sarah
 * @date: Created in 2021/7/27 19:09
 * @version:v1.0
 */
@Mapper
public interface RoleConverter {

    RoleConverter INSTANCE = Mappers.getMapper(RoleConverter.class);
    RoleBO RoleParamToBO(RoleParam roleParam);
    RolePO RoleBOToPO(RoleBO roleBO);
}
